import request from '@/utils/request'

// 查询申请借用列表
export function listItemapplication(query) {
  return request({
    url: '/itemapplication/itemapplication/list',
    method: 'get',
    params: query
  })
}

// 查询申请借用详细
export function getItemapplication(id) {
  return request({
    url: '/itemapplication/itemapplication/' + id,
    method: 'get'
  })
}

// 新增申请借用
export function addItemapplication(data) {
  return request({
    url: '/itemapplication/itemapplication',
    method: 'post',
    data: data
  })
}

// 修改申请借用
export function updateItemapplication(data) {
  return request({
    url: '/itemapplication/itemapplication',
    method: 'put',
    data: data
  })
}

// 删除申请借用
export function delItemapplication(id) {
  return request({
    url: '/itemapplication/itemapplication/' + id,
    method: 'delete'
  })
}
